package com.hut.oa.model.dao.note;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import com.hut.oa.model.bean.NoteDir;
import com.hut.oa.model.bean.User;

public interface NoteDirDao extends CrudRepository<NoteDir, Integer>{
	
	//查找所有目录
	List<NoteDir> findByUser(User u);

	//查找是否存在此目录
	List<NoteDir> findByUserAndName(User u,String name);
}
